"use strict";
layui.define([], function (exprots) {
    // API基础URL配置
    const API_BASE_URL = "https://nzy-api.congqian.cn";
    
    let okMock = {
        api: {
            login: API_BASE_URL + "/Api/admin/login",    //登录
            logout: API_BASE_URL + "/Api/admin/logout",  //退出登录
            //菜单
            menu: {
                menu: API_BASE_URL + "/Api/admin/menu",   //获取当前登录人员的菜单
                sys_menu_list: API_BASE_URL + "/Api/admin/sys_menu_list",   //获取系统所有的菜单列表及动作权限
                action_by_path: API_BASE_URL + "/Api/admin/menu/action_by_path",   //根据路径获取动作权限
            },
            //用户
            user: {
                list: API_BASE_URL + "/Api/admin/user/list"   //获取用户列表
            },
            //角色
            role: {
                list: API_BASE_URL + "/Api/admin/role/list",         //获取角色列表
                insert: API_BASE_URL + "/Api/admin/role/insert",     //添加角色
                delete: API_BASE_URL + "/Api/admin/role/delete",     //删除角色
                update: API_BASE_URL + "/Api/admin/role/update",     //修改角色
                detail: API_BASE_URL + "/Api/admin/role/detail",     //更新角色
            },

            //预约记录
            reservation_record: {
                personal_list: API_BASE_URL + "/Api/admin/reservation/personal_list",    //个人预约记录列表
                personal_detail: API_BASE_URL + "/Api/admin/reservation/personal_detail",//个人预约记录详情

                team_list: API_BASE_URL + "/Api/admin/reservation/team_list",            //团队预约记录列表
                team_update: API_BASE_URL + "/Api/admin/reservation/team_update",        //修改团队预约记录，即审核
                team_detail: API_BASE_URL + "/Api/admin/reservation/team_detail",        //团队预约记录详情
                
                activity_list: API_BASE_URL + "/Api/admin/reservation/activity_list",     //活动列表
                activity_update: API_BASE_URL + "/Api/admin/reservation/activity_update", //审核活动申请
                activity_detail: API_BASE_URL + "/Api/admin/reservation/activity_detail", //详情
            },


            //预约设置
            reservation_set: {
                list: API_BASE_URL + "/Api/admin/reservation_set/list",         //获取预约设置列表
                insert: API_BASE_URL + "/Api/admin/reservation_set/insert",     //添加预约设置
                delete: API_BASE_URL + "/Api/admin/reservation_set/delete",     //删除预约设置
                update: API_BASE_URL + "/Api/admin/reservation_set/update",     //修改预约设置
                detail: API_BASE_URL + "/Api/admin/reservation_set/detail",     //获取详情
            },


            //临时闭馆
            temporary_close: {
                list: API_BASE_URL + "/Api/admin/temporary_close/list",         //获取临时闭馆列表
                insert: API_BASE_URL + "/Api/admin/temporary_close/insert",     //添加临时闭馆
                delete: API_BASE_URL + "/Api/admin/temporary_close/delete",     //删除临时闭馆
                update: API_BASE_URL + "/Api/admin/temporary_close/update",     //修改临时闭馆
                detail: API_BASE_URL + "/Api/admin/temporary_close/detail",     //获取详情
            },

            //篇章管理
            exhibit_one: {
                list: API_BASE_URL + "/Api/admin/exhibit_one/list",         //获取展项列表
                no_page_list: API_BASE_URL + "/Api/admin/exhibit_one/no_page_list",//不分页查询列表
                insert: API_BASE_URL + "/Api/admin/exhibit_one/insert",     //添加展项
                delete: API_BASE_URL + "/Api/admin/exhibit_one/delete",     //删除展项
                update: API_BASE_URL + "/Api/admin/exhibit_one/update",     //修改展项
                delete_item: API_BASE_URL + "/Api/admin/exhibit_one/delete_item",//删除展项多媒体文件
                detail: API_BASE_URL + "/Api/admin/exhibit_one/detail",     //获取详情
            },

            //展项管理
            exhibit_two: {
                list: API_BASE_URL + "/Api/admin/exhibit_two/list",         //获取展项列表
                no_page_list: API_BASE_URL + "/Api/admin/exhibit_two/no_page_list",//不分页查询列表
                insert: API_BASE_URL + "/Api/admin/exhibit_two/insert",     //添加展项
                delete: API_BASE_URL + "/Api/admin/exhibit_two/delete",     //删除展项
                update: API_BASE_URL + "/Api/admin/exhibit_two/update",     //修改展项
                detail: API_BASE_URL + "/Api/admin/exhibit_two/detail",     //获取详情
            },

            //展品管理
            exhibit_three: {
                list: API_BASE_URL + "/Api/admin/exhibit_three/list",         //获取列表
                insert: API_BASE_URL + "/Api/admin/exhibit_three/insert",     //添加
                delete: API_BASE_URL + "/Api/admin/exhibit_three/delete",     //删除
                update: API_BASE_URL + "/Api/admin/exhibit_three/update",     //修改
                detail: API_BASE_URL + "/Api/admin/exhibit_three/detail",     //获取
            },
            
            //公告
            notice: {
                list: API_BASE_URL + "/Api/admin/notice/list",         //获取公告列表
                insert: API_BASE_URL + "/Api/admin/notice/insert",     //添加公告
                delete: API_BASE_URL + "/Api/admin/notice/delete",     //删除公告
                update: API_BASE_URL + "/Api/admin/notice/update",     //修改公告
                detail: API_BASE_URL + "/Api/admin/notice/detail",     //获取详情
            },

            //参观者列表
            visitor: {
                list: API_BASE_URL + "/Api/admin/visitor/list",         //获取参观者列表
                detail: API_BASE_URL + "/Api/admin/visitor/detail",     //获取详情
            },

            //提醒文本
            reminder: {
                update: API_BASE_URL + "/Api/admin/reminder/update",     //修改提醒文本
                detail: API_BASE_URL + "/Api/admin/reminder/detail",     //获取提醒文本
            },

            //文件相关api
            file: {
                upload: API_BASE_URL + "/Api/admin/file/upload",         //文件上传
                delete: API_BASE_URL + "/Api/admin/file/delete",         //文件删除
            },
        }
    };
    exprots("okMock", okMock);
});
